<!doctype html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body border="1" >
<form action="/student/list" method="post">
    <label>Name:</label>
    <input type="text" name="name">
    <label>Age:</label>
    <input type="text" name="age">
    <input type="submit" value="Search">
</form>

<table border="1">
    <tr>
        <td>Id</td>
        <td>Name</td>
        <td>Age</td>
        <td>Action</td>
    </tr>
    <tr th:each="student: ${studentlist}">
        <td th:text="${student.id}"></td>
        <td th:text="${student.name}"></td>
        <td th:text="${student.age}"></td>
        <td>
            <a th:href="@{/student/delete/{id}(id=${student.id})}">Delete</a>
            <a th:href="@{/student/update/{id}(id=${student.id})}">Update</a>
        </td>
    </tr>
</table>
<div>
    <a href="/student/create">Create</a>
</div>
</body>
</html>